package ru.troyanov.Datchick.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;


public class MeasurementDTO {
    @Min(value = -100, message = "Out of bounds")
    @Max(value = 100, message = "Out of bounds")
    @NotNull(message = "Must be filled in")
    private double temperature;

    @NotNull(message = "Must be filled in")
    private boolean rain;

    @NotNull(message = "Must be filled in")
    private String sensorName;

    public double getTemperature() {
        return temperature;
    }

    public void setTemperature(double temperature) {
        this.temperature = temperature;
    }

    public boolean isRain() {
        return rain;
    }

    public void setRain(boolean rain) {
        this.rain = rain;
    }

    public String getSensorName() {
        return sensorName;
    }

    public void setSensorName(String sensorName) {
        this.sensorName = sensorName;
    }
}
